package com.pojo.view;


import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.format.annotation.DateTimeFormat;

import java.math.BigDecimal;
import java.util.Date;

/**
 * 销售数据视图
 *
 * @author admin
 * @date 2023/06/20
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
public class SalesDetailR {

    /**
     * 销售订单id
     */
    private Long salesOrderId;
    /**
     * 销售订单号
     */
    private String salesOrderNo;
    /**
     * 客户名称
     */
    private String customName;
    /**
     * 客户号码
     */
    private String customPhone;
    /**
     * 总价格
     */
    private BigDecimal totalPrice;
    /**
     * 销售订单时间
     */
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd HH:mm:ss")
    private Date salesOrderTime;
    /**
     * 销售订单状态
     */
    private String salesOrderStatus;


}
